<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <style>
        .imgs {
            width: 200px;
            height: 200px;
            border-radius: 50%;
        }
    </style>
</head>

<body>
    <div id="app">
        <h1>{{title}}</h1>
        <img v-if="show" class="imgs" src="https://img2.baidu.com/it/u=1924610495,1965043470&fm=26&fmt=auto&gp=0.jpg"
            alt="">
        <button @click="show=!show">切换</button>
    </div>
</body>
<script>
    const vm = new Vue({
        data: {
            title: "Vue 动画过渡",
            show: true,
        }
    }).$mount("#app")
</script>

</html>